package com.jymf.system.dao;


import com.jymf.model.*;

import java.util.List;
import java.util.Map;

/**
 * @author zyj
 * @create 2017-06-06
 **/
public interface CommSystemDao {
    void saveNode(Map<String, Object> map) throws Exception;
    Resource getResourceById(int id) throws Exception;
    void editNode(Map<String, Object> map) throws Exception;
    List<Resource> getResourceByParentId(Integer pid) throws Exception;
    void deleteNode(int id) throws Exception;
    List<Role> getRolesList(Map<String, Object> map) throws Exception;
    int getTotal(Map<String, Object> map) throws Exception;
    void saveRole(Map<String, Object> map) throws Exception;
    void editRole(Map<String, Object> map) throws Exception;
    void deleteRoleRes(int roleId) throws Exception;
    void addRoleRes(List<Map<String, Object>> listRes) throws Exception;
    List<Rolesource> getRoleRes(int roleId) throws Exception;
    void deleteRole(int roleId) throws Exception;
    List<Users> getUserList(Map<String, Object> map) throws Exception;
    int getUserTotal(Map<String, Object> map) throws Exception;
    void saveUsers(Map<String, Object> map) throws Exception;
    void editUsers(Map<String, Object> map) throws Exception;
    Users getUserById(int id) throws Exception;
    List<Map<String, Object>> getUserRolesList(String lgName) throws Exception;
    List<Integer> getUserRoleInfo(int userId) throws Exception;
    void deleteUserRole(int roleId) throws Exception;
    void addUserRole(List<Map<String, Object>> listRes) throws Exception;
    void deleteUser(int userId) throws Exception;
    void editPasswd(Map<String, Object> map) throws Exception;
    List<Dictionary> selectDict(Map<String, Object> map) throws Exception;
    List<Map<String, Object>> queryDict(Page<Map<String, Object>> page) throws Exception;
    List<Map<String, Object>> queryDictData(Page<Map<String, Object>> page) throws Exception;
    void insertDictionary(Dictionary dictionary) throws Exception;
    void insertDictionaryData(Dictionarydata dictionarydata) throws Exception;
    Dictionarydata queryDictDataById(Integer id) throws Exception;
    void updateDictionaryData(Dictionarydata dictionary) throws Exception;
    List<Dictionarydata> queryDataByDict(String dictData) throws Exception;
    List<Role> getRolesPageList(Page<Role> page);
    List<Users> getUserPageList(Page<Role> page);
}
